package org.jeecg.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.jeecg.domain.AgencyCertification;
import org.jeecg.domain.CommonUser;
import org.jeecg.domain.dto.AgencyDto;
import org.jeecg.domain.dto.ResponseResult;
import org.jeecg.domain.vo.AgencyVo;
import org.jeecg.mapper.CommonUserMapper;
import org.jeecg.service.AgencyCertificationService;
import org.jeecg.mapper.AgencyCertificationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
* @author w
* @description 针对表【agency_certification(机构认证信息表)】的数据库操作Service实现
* @createDate 2024-12-25 13:51:33
*/
@Service
public class AgencyCertificationServiceImpl extends ServiceImpl<AgencyCertificationMapper, AgencyCertification>
    implements AgencyCertificationService{
    @Autowired
    private AgencyCertificationMapper agencyCertificationMapper;
    @Override
    public ResponseResult listagency(AgencyDto agencyDto) {
        PageHelper.startPage(agencyDto.getPageNum(),agencyDto.getPageSize());
             List<AgencyVo> list =agencyCertificationMapper.listagency(agencyDto);
        PageInfo<AgencyVo> agencyVoPageInfo = new PageInfo<>(list);
        return ResponseResult.okResult(agencyVoPageInfo);

    }

}




